package com.enation.app.javashop.api.client;

import com.enation.app.javashop.model.member.dos.Member;
import com.enation.app.javashop.service.statistics.MemberDataManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 会员信息收集manager
 *
 * @author chopper
 * @version v1.0
 * @Description:
 * @since v7.0
 * 2018/5/8 下午4:10
 */

@RestController
@RequestMapping("/client/statistics")
@Validated
@ApiIgnore
public class MemberDataClientController {

    @Autowired
    private MemberDataManager memberDataManager;

    /**
     * 会员注册
     *
     * @param member 会员
     */
    @RequestMapping(value = "/member/register", method = RequestMethod.POST)
    public void register(@RequestBody Member member) {
        memberDataManager.register(member);
    }


}
